import styled from 'styled-components'

export const LtCarouselWrapper = styled.div`
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  position: relative;
  .carousel_item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: all 0.8s;
    overflow: hidden;
    cursor: pointer;
  }

  .current {
    opacity: 1;
    z-index: 99;
  }

  .row {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;

    img {
      width: 40px;
      height: 40px;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      border-radius: 50%;
      cursor: pointer;
      padding: 6px;
      opacity: 0.8;
      transition: all 0.8s;
      z-index: 99;

      &:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.1);
      }
    }

    .left {
      left: 8px;
    }
    .right {
      right: 8px;
    }
  }

  .dot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    display: flex;
    justify-content: center;

    .dot_item {
      width: 8px;
      height: 8px;
      margin-right: 10px;
      border-radius: 50%;
      cursor: pointer;
      background-color: var(--bgColorTop);
    }
  }
`
